
package  edu.java.texbooks.scjp.chap02.polymorphism;

class Init {
    Init(int x) {
	System.out.println("1-arg const");
    }

    Init() {
	System.out.println("no-arg const");
    }

    // static initialization block
    static {
	System.out.println("1st static init");

    }

    // initialization block
    {
	System.out.println("1st instance init");

    }

    // initialization block
    {
	System.out.println("2nd instance init");

    }
    
    // static initialization block
    static {
	System.out.println("2nd static init");

    }

    public static void main(String[] args) {
	new Init();
	new Init(7);
    }
}
